﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="setEmail.aspx.cs" Inherits="setEmail"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>设置邮件信息</title>
    <link href="Css/comm.css" rel="stylesheet" type="text/css" />
</head>
<body style="font-size: 12px; font-family: Arial, Helvetica, sans-serif;">
    <form id="form1" runat="server">
    <div>
        <div style="height: 23px;">
            <div class="tab_1" onclick="fu_C(0)" id="c0">
                邮件帐户</div>
            <div runat="server" id="isNewEmail_Div" visible="true">
                <div class="tab_2" onclick="fu_C(1)" id="c1">
                    邮件内容</div>
                <div class="tab_2" onclick="fu_C(2)" id="c2">
                    邮局设置</div>
            </div>
        </div>
        <div class="cinfo" id="info0">
            <table width="95%">
                <tr>
                    <td style="width: 106px; height: 33px;">
                        帐户名：
                    </td>
                    <td style="height: 33px">
                        <input id="tb_userName" type="text" style="width: 200px;" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 27px;">
                        密码：
                    </td>
                    <td style="height: 27px">
                        <asp:TextBox ID="tb_passWord" runat="server" Width="200" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 83px;">
                    </td>
                    <td style="height: 83px;">
                        <asp:Button ID="Button3" runat="server" Text="添加帐户" OnClick="Button3_Click" />
                    </td>
                </tr>
                <tr style="background-color: #EEEEEE;">
                    <td colspan="2">
                        <table style="background-color: #EEE;">
                            <tr>
                                <td>
                                    当前操作帐户：<b><asp:Label ID="lb_username" runat="server"></asp:Label></b>
                                </td>
                                <td>
                                    <asp:Button ID="Button5" runat="server" Text="删除此帐户" OnClientClick="return confirm('该操作不可恢复,请慎重操作,是否要删除此帐户?');"
                                        OnClick="Button5_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="cinfo" id="info1" style="display: none;">
            <table>
                <tr>
                    <td style="width: 106px; height: 33px;">
                        邮件主题：
                    </td>
                    <td style="height: 33px">
                        <input id="tb_subject" type="text" style="width: 95%;" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 27px;">
                        发件人：
                    </td>
                    <td style="height: 27px">
                        <asp:TextBox ID="tb_senderName" runat="server" Width="238px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 83px;">
                        邮件内容：
                    </td>
                    <td style="height: 83px;">
                        <asp:TextBox ID="tb_body" runat="server" Height="150px" TextMode="MultiLine" Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 32px">
                        邮件变量：
                    </td>
                    <td style="height: 32px">
                        {string1}<asp:TextBox ID="tb_string1" runat="server" CssClass="text_2"></asp:TextBox>
                        {string2}<asp:TextBox ID="tb_string2" runat="server" CssClass="text_2"></asp:TextBox>
                        {string3}<asp:TextBox ID="tb_string3" runat="server" CssClass="text_2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 32px">
                    </td>
                    <td style="height: 32px">
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="保 存" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="cinfo" id="info2" style="display: none;">
            <table>
                <tr>
                    <td style="width: 106px">
                        邮局1(默认)：
                    </td>
                    <td>
                        Smtp地址：<asp:TextBox ID="tb_mailset_1_1" runat="server" CssClass="text_2"></asp:TextBox>
                        帐号：<asp:TextBox ID="tb_mailset_1_2" runat="server" CssClass="text_2"></asp:TextBox>
                        密码：<asp:TextBox ID="tb_mailset_1_3" runat="server" CssClass="text_2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px">
                        邮局2：
                    </td>
                    <td>
                        Smtp地址：<asp:TextBox ID="tb_mailset_2_1" runat="server" CssClass="text_2"></asp:TextBox>
                        帐号：<asp:TextBox ID="tb_mailset_2_2" runat="server" CssClass="text_2"></asp:TextBox>
                        密码：<asp:TextBox ID="tb_mailset_2_3" runat="server" CssClass="text_2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 12px;">
                        邮局3：
                    </td>
                    <td style="height: 12px;">
                        Smtp地址：<asp:TextBox ID="tb_mailset_3_1" runat="server" CssClass="text_2"></asp:TextBox>
                        帐号：<asp:TextBox ID="tb_mailset_3_2" runat="server" CssClass="text_2"></asp:TextBox>
                        密码：<asp:TextBox ID="tb_mailset_3_3" runat="server" CssClass="text_2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 12px">
                        邮局4：
                    </td>
                    <td style="height: 12px">
                        Smtp地址：<asp:TextBox ID="tb_mailset_4_1" runat="server" CssClass="text_2"></asp:TextBox>
                        帐号：<asp:TextBox ID="tb_mailset_4_2" runat="server" CssClass="text_2"></asp:TextBox>
                        密码：<asp:TextBox ID="tb_mailset_4_3" runat="server" CssClass="text_2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 12px">
                        邮局5：
                    </td>
                    <td style="height: 12px">
                        Smtp地址：<asp:TextBox ID="tb_mailset_5_1" runat="server" CssClass="text_2"></asp:TextBox>
                        帐号：<asp:TextBox ID="tb_mailset_5_2" runat="server" CssClass="text_2"></asp:TextBox>
                        密码：<asp:TextBox ID="tb_mailset_5_3" runat="server" CssClass="text_2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 66px">
                        发送时间间隔：
                    </td>
                    <td style="height: 66px">
                        <asp:TextBox ID="tb_timeout" runat="server"></asp:TextBox>
                        秒
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 25px">
                        邮局使用方式：
                    </td>
                    <td style="height: 25px">
                        <asp:RadioButton ID="RadioButton1" runat="server" Checked="True" GroupName="rn_emailtype"
                            Text="随机邮局" />
                        <asp:RadioButton ID="RadioButton2" runat="server" GroupName="rn_emailtype" Text="默认邮局" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 106px; height: 25px">
                    </td>
                    <td style="height: 25px">
                        <asp:Button ID="Button2" runat="server" Text="保 存" OnClick="Button2_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <script>
            function fu_C(d) {
                if (d == 0) {
                    document.all["c1"].className = "tab_2";
                    document.all["c2"].className = "tab_2";
                    document.all["c0"].className = "tab_1";
                    document.all["info1"].style.display = "none";
                    document.all["info2"].style.display = "none";
                    document.all["info0"].style.display = "";
                }
                else if (d == 1) {
                    document.all["c1"].className = "tab_1";
                    document.all["c2"].className = "tab_2";
                    document.all["c0"].className = "tab_2";
                    document.all["info1"].style.display = "";
                    document.all["info2"].style.display = "none";
                    document.all["info0"].style.display = "none";
                }
                else {
                    document.all["c1"].className = "tab_2";
                    document.all["c2"].className = "tab_1";
                    document.all["c0"].className = "tab_2";
                    document.all["info1"].style.display = "none";
                    document.all["info2"].style.display = "";
                    document.all["info0"].style.display = "none";
                }
            }
        </script>
        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>
